package com.hadwinling.map.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Auther: jzhang
 * @Date: 2019/10/23 09:02
 * @Description: 酒店实体类（使用AR模式）
 */
@Data
@TableName(value = "map_hotel")
@EqualsAndHashCode(callSuper = false)
public class Hotel extends Model<Hotel> {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String img;
    private BigDecimal longitude; //经度
    private BigDecimal latitude;//纬度
    private String detailAddress; //酒店详细地址
    @TableField(exist = false)
    private String coordinate; //经纬度
    @TableLogic
    private Integer delFlag;//删除标示位
}
